package com.dragon.modules.yuegou.entity.product;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * 参团表实体类<br>
 * 对应的表为：pro_groupon_join<br>
 * 
 * @author pbuilder generated
 * @date 2019-09-28 14:32:38
 * @company sgy
 * @version 2.0
 */
@TableName("pro_groupon_join")
@ApiModel(description = "参团表")
public class GrouponJoinEntity {

    /** 主键ID */
	@ApiModelProperty("主键ID")
	protected String id;

    /** 商圈ID */
	@ApiModelProperty("商圈ID")
	protected String busdId;

    /** 商户ID */
	@ApiModelProperty("商户ID")
	protected String merchantId;

    /** 拼团活动信息ID */
	@ApiModelProperty("拼团活动信息ID")
	protected String grouponInfoId;

    /** 团购ID */
	@ApiModelProperty("团购ID")
	protected String grouponId;

    /** 商品ID */
	@ApiModelProperty("商品ID")
	protected String skuId;

    /** 会员ID */
	@ApiModelProperty("会员ID")
	protected String memberId;

    /** 发起人id */
	@ApiModelProperty("发起人id")
	protected Long owner;

    /** 订单号 */
	@ApiModelProperty("订单号")
	protected String orderNo;

    /** 类型 0拼团 1单独购买 */
	@ApiModelProperty("类型 0拼团 1单独购买")
	protected Boolean joinType;

    /** 创建时间 */
	@ApiModelProperty("创建时间")
	protected LocalDateTime createdTime;

	/**
	 * 构造一个空参团表实体对象
	 */
	public GrouponJoinEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个参团表实体对象
	 * 
	 * @param other 其它对象
	 */
	public GrouponJoinEntity(GrouponJoinEntity other){
		super();
     	this.id = other.id;
     	this.busdId = other.busdId;
     	this.merchantId = other.merchantId;
     	this.grouponInfoId = other.grouponInfoId;
     	this.grouponId = other.grouponId;
     	this.skuId = other.skuId;
     	this.memberId = other.memberId;
     	this.owner = other.owner;
     	this.orderNo = other.orderNo;
     	this.joinType = other.joinType;
     	this.createdTime = other.createdTime;
	}


	/**
	 * 获取主键ID
	 * 
	 * @return id 主键ID
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置主键ID
	 * 
	 * @param id 主键ID
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取商圈ID
	 * 
	 * @return busdId 商圈ID
	 */
	public String getBusdId() {
		return busdId;
	}
  	
	/**
	 * 设置商圈ID
	 * 
	 * @param busdId 商圈ID
	 */
	public void setBusdId(String busdId) {
		this.busdId = busdId;
	}

	/**
	 * 获取商户ID
	 * 
	 * @return merchantId 商户ID
	 */
	public String getMerchantId() {
		return merchantId;
	}
  	
	/**
	 * 设置商户ID
	 * 
	 * @param merchantId 商户ID
	 */
	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}

	/**
	 * 获取拼团活动信息ID
	 * 
	 * @return grouponInfoId 拼团活动信息ID
	 */
	public String getGrouponInfoId() {
		return grouponInfoId;
	}
  	
	/**
	 * 设置拼团活动信息ID
	 * 
	 * @param grouponInfoId 拼团活动信息ID
	 */
	public void setGrouponInfoId(String grouponInfoId) {
		this.grouponInfoId = grouponInfoId;
	}

	/**
	 * 获取团购ID
	 * 
	 * @return grouponId 团购ID
	 */
	public String getGrouponId() {
		return grouponId;
	}
  	
	/**
	 * 设置团购ID
	 * 
	 * @param grouponId 团购ID
	 */
	public void setGrouponId(String grouponId) {
		this.grouponId = grouponId;
	}

	/**
	 * 获取商品ID
	 * 
	 * @return skuId 商品ID
	 */
	public String getSkuId() {
		return skuId;
	}
  	
	/**
	 * 设置商品ID
	 * 
	 * @param skuId 商品ID
	 */
	public void setSkuId(String skuId) {
		this.skuId = skuId;
	}

	/**
	 * 获取会员ID
	 * 
	 * @return memberId 会员ID
	 */
	public String getMemberId() {
		return memberId;
	}
  	
	/**
	 * 设置会员ID
	 * 
	 * @param memberId 会员ID
	 */
	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	/**
	 * 获取发起人id
	 * 
	 * @return owner 发起人id
	 */
	public Long getOwner() {
		return owner;
	}
  	
	/**
	 * 设置发起人id
	 * 
	 * @param owner 发起人id
	 */
	public void setOwner(Long owner) {
		this.owner = owner;
	}

	/**
	 * 获取订单号
	 * 
	 * @return orderNo 订单号
	 */
	public String getOrderNo() {
		return orderNo;
	}
  	
	/**
	 * 设置订单号
	 * 
	 * @param orderNo 订单号
	 */
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	/**
	 * 获取类型 0拼团 1单独购买
	 * 
	 * @return joinType 类型 0拼团 1单独购买
	 */
	public Boolean getJoinType() {
		return joinType;
	}
  	
	/**
	 * 设置类型 0拼团 1单独购买
	 * 
	 * @param joinType 类型 0拼团 1单独购买
	 */
	public void setJoinType(Boolean joinType) {
		this.joinType = joinType;
	}

	/**
	 * 获取创建时间
	 * 
	 * @return createdTime 创建时间
	 */
	public LocalDateTime getCreatedTime() {
		return createdTime;
	}
  	
	/**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 */
	public void setCreatedTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
	}

    public String toString() {
		return new StringBuilder().append("GrouponJoinEntity{").
			append("id=").append(id).
			append(",busdId=").append(busdId).
			append(",merchantId=").append(merchantId).
			append(",grouponInfoId=").append(grouponInfoId).
			append(",grouponId=").append(grouponId).
			append(",skuId=").append(skuId).
			append(",memberId=").append(memberId).
			append(",owner=").append(owner).
			append(",orderNo=").append(orderNo).
			append(",joinType=").append(joinType).
			append(",createdTime=").append(createdTime).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public GrouponJoinEntity copy() {
		return new GrouponJoinEntity(this);
	}

    /** 主键ID */
	public static final String COL_ID = "id";

    /** 商圈ID */
	public static final String COL_BUSD_ID = "busd_id";

    /** 商户ID */
	public static final String COL_MERCHANT_ID = "merchant_id";

    /** 拼团活动信息ID */
	public static final String COL_GROUPON_INFO_ID = "groupon_info_id";

    /** 团购ID */
	public static final String COL_GROUPON_ID = "groupon_id";

    /** 商品ID */
	public static final String COL_SKU_ID = "sku_id";

    /** 会员ID */
	public static final String COL_MEMBER_ID = "member_id";

    /** 发起人id */
	public static final String COL_OWNER = "owner";

    /** 订单号 */
	public static final String COL_ORDER_NO = "order_no";

    /** 类型 0拼团 1单独购买 */
	public static final String COL_JOIN_TYPE = "join_type";

    /** 创建时间 */
	public static final String COL_CREATED_TIME = "created_time";
}
